<template>
  <div id="app">
    <router-view />
  </div>
</template>
<script>
import requests from '@/api/ajax';
export default {
  name: 'App',
  components: {},
  mounted() {
    requests.get('/users/judgeToken').then((res) => {
      // console.log('--------------------');
      console.log(res);
      if (res.code === 0) {
        window.localStorage.clear();
        this.$router.go(0);
        // alert('登录过期');
      }
    });
  },
};
</script>
<style scoped>
#app {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
</style>
